<?
define('_AOW93KKDIEQ',true);
include("includes/config.php");


$act=  isset($_GET['opt'])        ?    $_GET['opt']     : "idx";
$name=  isset($_GET['name'])      ?    $_GET['name']    : "";

if(empty($name) && isset($_COOKIE[_NAMESITESUPPORT]) && $name!=$_COOKIE[_NAMESITESUPPORT])
{
	$name=$_COOKIE[_NAMESITESUPPORT];
}else
{
	set_Cookie(_NAMESITESUPPORT,$name);
}


$choice = array(
				"login"  => "login",
				"logout" => "logout",
                "idx"    => "index",
				"check"	 => "check",
				"sendms" => "insertms",
				"offline"=> "offline"
				);
			
if(CheckLoginGuest()==false)
{
	if($act=="check")
	{
		echo "banned";
		echo "(*_*)System++You Banned this support by ".$_COOKIE[_NAMESITESUPPORT].". Please click logout to login (*_*).";
		exit;
	}
	$act="login";
}

if($act=="login" || $act=="offline")
{			
	GetSupportInfo($name);
	if($hasOnline==false)
	{
		$act="offline";
	}
} 

if (!isset($choice[$act]))
{
	$act = "idx";
}

//Run the actually source
require("source/guest/".$choice[$act].".php");
include("templates/guest/".$choice[$act].".tpl");
?>